package com.syq.dao;




import com.syq.entity.Coach;
import com.syq.page.PageInfo;

import java.util.List;

public interface CoachDao {
    public List<Coach>  getAllCoachs() throws Exception;
    public Coach  selectCoachByCno(String cno) throws Exception;
    Integer deleteCoachByCno(String cno) throws Exception;
    Integer updateCoachByCno(Coach coach) throws Exception;
    Integer addCoach(Coach coach) throws Exception;
    public List<Coach> getCoachByPage(PageInfo pageInfo) throws Exception;
    public Coach selectCoachWithCourseTemplate(String cno);
//    Coach getCoachWithOrdrees(String cno)throws Exception;
//    Coach getAccountByAccountName(String cname);
//    public List<Coach> getCoachByExample(String cname);
//    Integer updateCoach(Coach coach)  throws Exception;
//    public Integer updateByPrimaryKeySelective(Coach coach);

    public Integer updateCoachs(Coach coach);


}
